package com.smartcampusbackend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smartcampusbackend.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    List<Integer> selectAllUserIds();
    
    /**
     * 根据院系ID和专业ID查询学生列表
     * @param departmentId 院系ID
     * @param majorId 专业ID
     * @return 学生列表
     */
    List<User> selectStudentsByDepartmentAndMajor(Long departmentId, Long majorId);
} 